import { AnyAction, Dispatch } from "redux";
import * as ActionTypes from '../action-types'
import { getHotwordRequest } from "@/api";

const setHotWord = (data: any[]): AnyAction => ({
    type: ActionTypes.SET_HOTWORD,
    data
})

export const getHotWord = () => {
    return (dispatch: Dispatch<AnyAction>) => {
        dispatch(setHotWord([]))
    }
}